public class test {
    public static void main1(String[] args) {
        int a = 10;
        Integer i = a;//自动装箱，此处自动调用valueOf方法
        Integer ii = new Integer(a);//显示装箱
        Integer iii = Integer.valueOf(a);//显示装箱

    }    
    public static void main2(String[] args) {
        Integer a = 10;
        int i = a.intValue();//显示拆箱
        float ii = a.floatValue();
        double iii = a.doubleValue();
        int iiii = a;//自动拆箱
    }
    public static void main(String[] args) {
        Integer a = 127;  
        Integer b = 127;
        Integer c = 128;
        Integer d = 128;
        System.out.println(a == b);
        System.out.println(c == d);
    }
}
